package pl.edu.pjwstk.kor.database.init;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import pl.edu.pjwstk.kor.model.Category;

public class CategoriesInitalizer extends AbstractDataInitalizer<Category> {
	private final List<Category> categories;
	
	public CategoriesInitalizer() {
		List<Category> varCategories = new ArrayList<Category>();
		Category marketing = new Category();
		marketing.setName("Marketing");
			
		Category webMarekting = new Category();
		webMarekting.setName("Web Marketing");
			
		Category eCommerce = new Category();
		eCommerce.setName("E-Commerce");
			
		varCategories.add(marketing);
		varCategories.add(webMarekting);
		varCategories.add(eCommerce);
		
		categories = Collections.unmodifiableList(varCategories);
	}
	@Override
	public List<Category> initData() throws Exception {
		return categories;
	}

}
